package controllers.pc;


import play.Logger;
import play.mvc.Before;
import play.mvc.Controller;
import play.mvc.Http;

/**
 * Created by Administrator on 2018-06-23.
 */

public class Logo extends Controller {
    /**
     * 跨域解决办法
     */
    @Before()
    public static void AllbeforeRun(){
//        response.setHeader("Access-Control-Allow-Origin","*");
//        response.setHeader("Access-Control-Allow-Methods" , "GET,POST,PUT,DELETE,OPTIONS");
//        response.setHeader("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
        Logger.info("正在执行ation请求命令："+ Http.Request.current.get().action);

    }

}
